package com.jindy.module.outgoingapproval.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jindy.activiti.domain.ProcessEntity;
import com.jindy.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.util.Date;

/**
 * 外出审批对象 sy_outgoing_approval
 * 
 * @author jindy
 * @date 2023-05-12
 */
public class OutgoingApprovalVO extends ProcessEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 外出事由 */
    @Excel(name = "外出事由")
    private String reason;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date outgoingStartTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date outgoingEndTime;

    /** 外出时长，单位小时 */
    @Excel(name = "外出时长，单位小时")
    private Long outgoingTotalTime;

    /** 申请人 */
    @Excel(name = "申请人")
    private String applyUserId;

    /** 申请人 */
    @Excel(name = "申请人")
    private String applyUserName;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;

    /** 流程实例ID */
    @Excel(name = "流程实例ID")
    private String instanceId;

    /** 流程定义key */
    @Excel(name = "流程定义key")
    private String processKey;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 流水单号 */
    @Excel(name = "流水单号")
    private String serialNum;

    /** 业务表状态 */
    @Excel(name = "业务表状态")
    private String businessStatus;


    public String getSerialNum() {
        return serialNum;
    }

    public void setSerialNum(String serialNum) {
        this.serialNum = serialNum;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setOutgoingStartTime(Date outgoingStartTime) 
    {
        this.outgoingStartTime = outgoingStartTime;
    }

    public Date getOutgoingStartTime() 
    {
        return outgoingStartTime;
    }
    public void setOutgoingEndTime(Date outgoingEndTime) 
    {
        this.outgoingEndTime = outgoingEndTime;
    }

    public Date getOutgoingEndTime() 
    {
        return outgoingEndTime;
    }
    public void setOutgoingTotalTime(Long outgoingTotalTime) 
    {
        this.outgoingTotalTime = outgoingTotalTime;
    }

    public Long getOutgoingTotalTime() 
    {
        return outgoingTotalTime;
    }
    public void setApplyUserId(String applyUserId) 
    {
        this.applyUserId = applyUserId;
    }

    public String getApplyUserId() 
    {
        return applyUserId;
    }
    public void setApplyUserName(String applyUserName) 
    {
        this.applyUserName = applyUserName;
    }

    public String getApplyUserName() 
    {
        return applyUserName;
    }
    public void setApplyTime(Date applyTime) 
    {
        this.applyTime = applyTime;
    }

    public Date getApplyTime() 
    {
        return applyTime;
    }
    public void setInstanceId(String instanceId) 
    {
        this.instanceId = instanceId;
    }

    public String getInstanceId() 
    {
        return instanceId;
    }
    public void setProcessKey(String processKey) 
    {
        this.processKey = processKey;
    }

    public String getProcessKey() 
    {
        return processKey;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getBusinessStatus() {
        return businessStatus;
    }

    public void setBusinessStatus(String businessStatus) {
        this.businessStatus = businessStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("id", id)
                .append("reason", reason)
                .append("outgoingStartTime", outgoingStartTime)
                .append("outgoingEndTime", outgoingEndTime)
                .append("outgoingTotalTime", outgoingTotalTime)
                .append("applyUserId", applyUserId)
                .append("applyUserName", applyUserName)
                .append("applyTime", applyTime)
                .append("instanceId", instanceId)
                .append("processKey", processKey)
                .append("delFlag", delFlag)
                .append("serialNum", serialNum)
                .append("businessStatus", businessStatus)
                .toString();
    }
}
